<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/1/29
 * Time: 16:28
 */
session_start();
header("content-type:text/html; charset=utf-8");
session_destroy();
echo "<script type='text/javascript'>
                    alert('退出成功!');
                    location.href='index.php';
                   </script>";

?>